import request from '../request'

// 新增病历
export const addCases = params => request.globalRequest(`aos/client/patientmedicalrecord/add`, 'POST', { data : params })

// 修改病历
export const editCases = params => request.globalRequest(`aos/client/patientmedicalrecord/edit`, 'PUT', { data : params })

// 获取病历记录
export const getCasesList = params => request.globalRequest(`aos/client/patientmedicalrecord/patientMedicalRecordList`, 'GET', { params : params })

// 获取病历详情
export const getCasesInfo = params => request.globalRequest(`aos/client/patientmedicalrecord/queryDetailById/${params.params.id}`, 'GET', params, false)

// 根据订单ID获取病历详情
export const getCasesByOrderId = params => request.globalRequest(`aos/client/patientmedicalrecord/queryDetailByOrderId/${params.params.orderId}`, 'GET', params, false)
